package com.yykj.pay.server;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(basePackages = { "com.yykj.common", "com.yykj.pay.server" })
@EnableFeignClients(basePackages = {"com.yykj"})
public class PayServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(PayServerApplication.class, args);
    }

    /*@Bean
    public WXPay wxpay() {
        try {
            WxConfig config = new WxConfig();
			config.setCertFilePath("./wxcert/10013/apiclient_cert.p12");
            return new WXPay(config);
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }*/
}
